import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import state from './state'
import actions from './actions'
import getters from './getters'
import mutations from './mutations'
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import createPersistedState from "vuex-persistedstate";
export default new Vuex.Store({
    plugins: [createPersistedState()],
    state,
    actions,
    getters,
    mutations,
    modules:{
        home,
        search,
        detail
    }
})
